package a06_InterfaceClass;

/**
 * @Author quan
 * @Description TODO
 * @Date 2023/1/28 23:31
 */
public class Frog extends Animal implements Swim {

    public Frog() {
    }

    public Frog(String name, int age) {
        super(name, age);
    }

    //重写eat方法
    @Override
    public void eat() {
        System.out.println("青蛙在吃虫子");
    }
    //重写接口中的swim方法
    @Override
    public void swim() {
        System.out.println("青蛙在蛙泳");
    }
}
